package cn.itheima.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Controller
@RequestMapping("/user")
public class UserController {


    @RequestMapping("/add.do")
//    @PreAuthorize("has")
    public  String   add(){

        System.out.println("---add----");

        return "redirect:/query.html";

    }
}
